<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CustomerInfo.ascx.cs"
    Inherits="Tathata.Web.Modules.Account.CustomerInfoControl" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register TagPrefix="nopCommerce" TagName="EmailTextBox" Src="~/Modules/EmailTextBox.ascx" %>
<div class="main">
    <table width="100%" cellspacing="0" cellpadding="2" border="0">
        <tbody>
            <tr>
                <td>
                    <b>
                        <%=GetLocaleResourceString("Account.YourPersonalDetails")%></b>
                </td>
            </tr>
        </tbody>
    </table>
    <table cellspacing="0" cellpadding="0" class="blockBordered">
        <tbody>
            <tr>
                <td>
                    <table cellspacing="2" cellpadding="2" border="0">
                        <tbody>
                            <tr>
                                <td>
                                    <%=GetLocaleResourceString("Account.Gender")%>:
                                </td>
                                <td>
                                    <asp:RadioButton runat="server" ID="rbGenderM" GroupName="Gender" Text="Male" Checked="true" />
                                    <asp:RadioButton runat="server" ID="rbGenderF" GroupName="Gender" Text="Female" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <%=GetLocaleResourceString("Account.FirstName")%>:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvFirstName" runat="server" ControlToValidate="txtFirstName"
                                        ErrorMessage="First name is required." ToolTip="First name is required." ValidationGroup="CustomerInfo">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <%=GetLocaleResourceString("Account.LastName")%>:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvLastName" runat="server" ControlToValidate="txtLastName"
                                        ErrorMessage="Last name is required." ToolTip="Last name is required." ValidationGroup="CustomerInfo">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <%=GetLocaleResourceString("Account.DateOfBirth")%>:
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txtDateOfBirth" />
                                    <asp:ImageButton runat="Server" ID="iDateOfBirth" ImageUrl="~/images/Calendar_scheduleHS.png"
                                        AlternateText="Click to show calendar" /><br />
                                    <ajaxToolkit:CalendarExtender ID="cDateOfBirthButtonExtender" runat="server" TargetControlID="txtDateOfBirth"
                                        PopupButtonID="iDateOfBirth" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    <table cellspacing="0" cellpadding="0" border="0">
        <tbody>
            <tr>
                <td>
                    <img height="10" width="100%" border="0" src="<%=Page.ResolveUrl("~/images/trans.gif")%>" />
                </td>
            </tr>
        </tbody>
    </table>
    <table cellspacing="0" cellpadding="0" border="0">
        <tbody>
            <tr>
                <td>
                    <b>
                        <%=GetLocaleResourceString("Account.CompanyDetails")%></b>
                </td>
            </tr>
        </tbody>
    </table>
    <table cellspacing="0" cellpadding="0" class="blockBordered">
        <tbody>
            <tr>
                <td>
                    <table cellspacing="2" cellpadding="2" border="0">
                        <tbody>
                            <tr>
                                <td>
                                    <%=GetLocaleResourceString("Account.CompanyName")%>:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtCompany" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    <table cellspacing="0" cellpadding="0" border="0">
        <tbody>
            <tr>
                <td>
                    <img height="10" width="100%" border="0" src="<%=Page.ResolveUrl("~/images/trans.gif")%>" />
                </td>
            </tr>
        </tbody>
    </table>
    <table cellspacing="0" cellpadding="0" border="0">
        <tbody>
            <tr>
                <td>
                    <b>
                        <%=GetLocaleResourceString("Account.YourAddress")%></b>
                </td>
            </tr>
        </tbody>
    </table>
    <table cellspacing="0" cellpadding="0" class="blockBordered">
        <tbody>
            <tr>
                <td>
                    <table cellspacing="2" cellpadding="2" border="0">
                        <tbody>
                            <tr>
                                <td>
                                    <%=GetLocaleResourceString("Account.StreetAddress")%>:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtStreetAddress" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvStreetAddress" runat="server" ControlToValidate="txtStreetAddress"
                                        ErrorMessage="Street address is required." ToolTip="Street address is required."
                                        ValidationGroup="CustomerInfo">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <%=GetLocaleResourceString("Account.StreetAddress2")%>:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtStreetAddress2" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <%=GetLocaleResourceString("Account.PostCode")%>:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtZipPostalCode" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvZipPostalCode" runat="server" ControlToValidate="txtZipPostalCode"
                                        ErrorMessage="Zip / Postal code is required." ToolTip="Zip / Postal code is required."
                                        ValidationGroup="CustomerInfo">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <%=GetLocaleResourceString("Account.City")%>:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtCity" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvCity" runat="server" ControlToValidate="txtCity"
                                        ErrorMessage="City is required." ToolTip="City is required." ValidationGroup="CustomerInfo">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <%=GetLocaleResourceString("Account.Country")%>:
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlCountry" AutoPostBack="True" runat="server" OnSelectedIndexChanged="ddlCountry_SelectedIndexChanged"
                                        Width="137px">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <%=GetLocaleResourceString("Account.StateProvince")%>:
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlStateProvince" AutoPostBack="False" runat="server" Width="137px">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    <table cellspacing="0" cellpadding="0" border="0">
        <tbody>
            <tr>
                <td>
                    <img height="10" width="100%" border="0" src="<%=Page.ResolveUrl("~/images/trans.gif")%>" />
                </td>
            </tr>
        </tbody>
    </table>
    <table cellspacing="0" cellpadding="0" border="0">
        <tbody>
            <tr>
                <td>
                    <b>
                        <%=GetLocaleResourceString("Account.YourContactInformation")%></b>
                </td>
            </tr>
        </tbody>
    </table>
    <table cellspacing="0" cellpadding="0" class="blockBordered">
        <tbody>
            <tr>
                <td>
                    <table cellspacing="2" cellpadding="2" border="0">
                        <tbody>
                            <tr>
                                <td>
                                    <%=GetLocaleResourceString("Account.TelephoneNumber")%>:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtPhoneNumber" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvPhoneNumber" runat="server" ControlToValidate="txtPhoneNumber"
                                        ErrorMessage="Telephone Number is required." ToolTip="Telephone Number is required."
                                        ValidationGroup="CustomerInfo">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <%=GetLocaleResourceString("Account.FaxNumber")%>:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtFaxNumber" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    <table cellspacing="0" cellpadding="0" border="0">
        <tbody>
            <tr>
                <td>
                    <img height="10" width="100%" border="0" src="<%=Page.ResolveUrl("~/images/trans.gif")%>" />
                </td>
            </tr>
        </tbody>
    </table>
    <table cellspacing="0" cellpadding="0" border="0">
        <tbody>
            <tr>
                <td>
                    <img height="10" width="100%" border="0" src="<%=Page.ResolveUrl("~/images/trans.gif")%>" />
                </td>
            </tr>
        </tbody>
    </table>
    <table width="100%" cellspacing="0" cellpadding="2" border="0">
        <tbody>
            <tr>
                <td>
                    <asp:Button runat="server" ID="btnSaveCustomerInfo" Text="Save" ValidationGroup="CustomerInfo"
                        OnClick="btnSaveCustomerInfo_Click"></asp:Button>
                </td>
                <td width="10">
                    <img height="1" width="10" border="0" src="<%=Page.ResolveUrl("~/images/trans.gif")%>" />
                </td>
            </tr>
        </tbody>
    </table>
</div>
